﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d" 
    xmlns:n="http://nRoute/schemas/2010/xaml"
    xmlns:images="clr-namespace:nRoute.Samples.FutureDesktop.Images" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    x:Class="nRoute.Samples.FutureDesktop.Views.HomePage" 
    d:DesignWidth="900" d:DesignHeight="600"
    n:Navigation.Title= "Home Page"
	>
	<UserControl.Resources>
        <DataTemplate x:Name="ClockTemplate">
            <Grid Height="64" HorizontalAlignment="Right" VerticalAlignment="Top" Width="64">
                <Ellipse Stroke="{StaticResource ForegroundLight3ColourBrush}" Fill="#FF79BD3A"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" HorizontalAlignment="Left" Margin="27.834,-0.333,0,0" VerticalAlignment="Top" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap"><Run Text="1"/><Run Text="2"/></TextBlock>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="0,6.667,14,0" VerticalAlignment="Top" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Right" Text="1" d:LayoutOverrides="Width"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="0,15.5,3.735,0" VerticalAlignment="Top" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Right" Text="2" d:LayoutOverrides="Width"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="0,27.667,3.117,25.333" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Right" Text="3" d:LayoutOverrides="Height"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="0,0,5.784,14.166" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Right" Text="4" VerticalAlignment="Bottom" d:LayoutOverrides="Height"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="0,0,13.451,6.167" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Right" Text="5" VerticalAlignment="Bottom"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="30.833,0,28.167,0.167" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" Text="6" VerticalAlignment="Bottom" d:LayoutOverrides="Width"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="15.5,0,0,3.5" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" Text="7" VerticalAlignment="Bottom" HorizontalAlignment="Left" d:LayoutOverrides="Width"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="7,0,0,13.833" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" Text="8" VerticalAlignment="Bottom" HorizontalAlignment="Left"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="2.5,28,0,25" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" Text="9" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="5.333,13.333,0,0" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" Text="10" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                <TextBlock Foreground="{StaticResource ForegroundLight1ColourBrush}" Height="Auto" Margin="13.5,4,0,0" VerticalAlignment="Top" FontFamily="Comic Sans MS" FontSize="8" TextWrapping="NoWrap" HorizontalAlignment="Left" d:LayoutOverrides="Width"><Run Text="1"/><Run Text="1"/></TextBlock>
            </Grid>
        </DataTemplate>
	</UserControl.Resources>
    <ScrollViewer Height="Auto" Width="Auto" BorderBrush="{x:Null}" BorderThickness="0,0,0,0" Background="#FFFFFFFF" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Padding="0,0,0,0">
		<Grid x:Name="LayoutRoot" Background="{x:Null}" Height="Auto" Width="Auto" Margin="8,0,8,0">

			<Grid.RowDefinitions>
				<RowDefinition Height="0.33*"/>
				<RowDefinition Height="0.34*"/>
				<RowDefinition Height="0.33*"/>
			</Grid.RowDefinitions>
			<Border HorizontalAlignment="Stretch" Width="Auto" BorderThickness="0,0,0,3">
				<Border.BorderBrush>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFE0E0E0" Offset="1"/>
						<GradientStop Color="#FFFFFFFF" Offset="0.277"/>
					</LinearGradientBrush>
				</Border.BorderBrush>
			</Border>
			<Border HorizontalAlignment="Stretch" Width="Auto" BorderThickness="0,0,0,3" Grid.Row="1">
				<Border.BorderBrush>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFE0E0E0" Offset="1"/>
						<GradientStop Color="#FFFFFFFF" Offset="0.277"/>
					</LinearGradientBrush>
				</Border.BorderBrush>
			</Border>
			<Border HorizontalAlignment="Stretch" Width="Auto" BorderThickness="0,0,0,3" Margin="0,0,0,10" Grid.Row="2"
                    >
				<Border.BorderBrush>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFE0E0E0" Offset="1"/>
						<GradientStop Color="#FFFFFFFF" Offset="0.277"/>
					</LinearGradientBrush>
				</Border.BorderBrush>
			</Border>
			<Grid HorizontalAlignment="Stretch" x:Name="ArtGrid" Width="Auto">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="100"/>
					<ColumnDefinition Width="0.33*"/>
					<ColumnDefinition Width="0.33*"/>
					<ColumnDefinition Width="0.34*"/>
				</Grid.ColumnDefinitions>
				<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" 
                           FontFamily="Trebuchet MS" FontSize="36" Text="ART" TextWrapping="NoWrap" 
                           d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" Margin="28,26,0,0" VerticalAlignment="Top"/>
                <Border Grid.Column="1" Cursor="Hand" Background="Transparent">
                	<i:Interaction.Triggers>
                		<i:EventTrigger EventName="MouseLeftButtonUp">
                			<n:NavigateAction Url="Images/MixLab"/>
                		</i:EventTrigger>
                	</i:Interaction.Triggers>
				    <n:NavigationContentControl RenderTransformOrigin="0.5,0.5" Url="Images/MixLab"
                        Margin="0,-20,0,0" VerticalAlignment="Top">
					    <n:NavigationContentControl.RenderTransform>
						    <TransformGroup>
							    <ScaleTransform ScaleX="0.55" ScaleY="0.55"/>
							    <SkewTransform/>
							    <RotateTransform/>
							    <TranslateTransform/>
						    </TransformGroup>
					    </n:NavigationContentControl.RenderTransform>
				    </n:NavigationContentControl>
                </Border>
                <Border Grid.Column="2" Cursor="Hand" Background="Transparent">
                	<i:Interaction.Triggers>
                		<i:EventTrigger EventName="MouseLeftButtonUp">
                			<n:NavigateAction Url="Images/HeartYourWeb"/>
                		</i:EventTrigger>
                	</i:Interaction.Triggers>
				    <n:NavigationContentControl  HorizontalContentAlignment="Stretch" 
                            VerticalContentAlignment="Stretch" RenderTransformOrigin="0.5,0.5" 
                            Url="Images/HeartYourWeb" VerticalAlignment="Top" Margin="0,-20,0,0" >
					    <n:NavigationContentControl.RenderTransform>
						    <TransformGroup>
							    <ScaleTransform ScaleX="0.60" ScaleY="0.60"/>
							    <SkewTransform/>
							    <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
					    </n:NavigationContentControl.RenderTransform>
				    </n:NavigationContentControl>
                </Border>
                <Border Grid.Column="3" Cursor="Hand" Background="Transparent">
                	<i:Interaction.Triggers>
                		<i:EventTrigger EventName="MouseLeftButtonUp">
                			<n:NavigateAction Url="Images/MixLogo"/>
                		</i:EventTrigger>
                	</i:Interaction.Triggers>
				    <n:NavigationContentControl HorizontalContentAlignment="Center" 
                            VerticalContentAlignment="Center" RenderTransformOrigin="0.5,0.5" 
							Url="Images/MixLogo">
					    <n:NavigationContentControl.RenderTransform>
						    <TransformGroup>
							    <ScaleTransform ScaleX="0.85" ScaleY="0.85"/>
							    <SkewTransform/>
							    <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
					    </n:NavigationContentControl.RenderTransform>
				    </n:NavigationContentControl>
                </Border>
				<TextBlock Height="13.25" HorizontalAlignment="Left" Margin="28,19,0,0" VerticalAlignment="Top" Width="63" Text="31 MAR 2009" TextWrapping="Wrap" Foreground="{StaticResource BkgDarkContrastColourBrush}" FontSize="10" FontFamily="Arial"/>
			</Grid>
			<Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Grid.Row="1" x:Name="SocialStudiesGrid">
				<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Trebuchet MS" FontSize="36" Text="SOCIAL STUDIES" TextWrapping="NoWrap" d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,27,0,0"/>
				<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="13.25" HorizontalAlignment="Left" VerticalAlignment="Top" Width="63" FontFamily="Arial" FontSize="10" Text="30 MAR 2009" TextWrapping="Wrap" Margin="25,20,0,0"/>
				<TextBlock Foreground="#FF737373" Margin="25,75,0,10" FontFamily="Arial" FontSize="13" TextWrapping="Wrap" Width="400" HorizontalAlignment="Left" VerticalAlignment="Top"><Run Text="Social studies is a boring subject about "/><Run FontFamily="Trebuchet MS" FontSize="24" Foreground="#FF6DA0BE" Text="culture sharing"/><LineBreak/><Run Text=""/><LineBreak/><Run Text="In Silverlight we have two models of .xaml controls, with and without code files. Loading plain xaml files is easy, however when you try and load code-backed xaml using the XamlReader it errors saying &quot;does not support x:Class"/><Run Text="&quot;."/></TextBlock>
				<Viewbox HorizontalAlignment="Left" Margin="550,5,0,5" Width="300"
				 	Height="233.33" VerticalAlignment="Top" Cursor="Hand">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonUp">
							<n:NavigateAction Url="Images/Energy"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
					<n:NavigationContentControl Url="Images/Energy" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
						
					</n:NavigationContentControl>
				</Viewbox>
				<Rectangle Height="30" HorizontalAlignment="Left" Margin="251.67,75,0,0" VerticalAlignment="Top" Width="167.666" Fill="#00FFFFFF" Stroke="{x:Null}" StrokeThickness="0" d:LayoutOverrides="Width" Cursor="Hand"
                           >
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonUp">
							<n:NavigateAction Url="Pages/FuturePage/CultureSharingInfomation"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</Rectangle>				
			</Grid>
			<Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Grid.Row="2" x:Name="MathGrid">
				<TextBlock Height="Auto" Width="Auto" FontFamily="Trebuchet MS" FontSize="36" Text="MATH" TextWrapping="NoWrap" d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,27,0,0" Foreground="{StaticResource BkgDarkContrastColourBrush}" d:IsLocked="True"/>
				<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="13.25" HorizontalAlignment="Left" VerticalAlignment="Top" Width="63" FontFamily="Arial" FontSize="10" Text="30 MAR 2009" TextWrapping="Wrap" Margin="25,20,0,0" d:IsLocked="True"/>
				<TextBlock Foreground="#FF737373" HorizontalAlignment="Left" Margin="25,75,0,10" Width="400" FontFamily="Arial" FontSize="13" TextWrapping="Wrap" d:LayoutOverrides="Height" d:IsLocked="True"><Run Text="Room discussion was about "/><Run FontFamily="Trebuchet MS" FontSize="24" Foreground="#FF6DA0BE" Text="time"/><LineBreak/><Run Text="In Silverlight we have two models of .xaml controls, with and without code files. Loading plain xaml files is eas"/><Run Text="y"/><Run Text="."/><LineBreak/><Run Text=""/><LineBreak/><Run Text="Next "/><Run Text="discussion "/><Run Text="will be"/><Run Text=" about "/><Run FontSize="24" Foreground="#FF6DA0BE" Text="addition"/><LineBreak/><Run Text="In Silverlight we have two models of .xaml controls, with and without code files. Loading plain xaml files is easy, however when you try and load code-backed xaml using the XamlReader it errors saying &quot;does not support x:Class"/><Run Text="&quot;."/><LineBreak/><Run Text=""/></TextBlock>
				<Canvas Width="260" HorizontalAlignment="Left" Margin="520,27,0,0" Height="200" VerticalAlignment="Top">
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" />
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" Canvas.Left="81" >
						<Path Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data=""/>
					</ContentPresenter>
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" Canvas.Left="164" />
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" Canvas.Top="99" />
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" Canvas.Left="164" Canvas.Top="99" />
					<ContentPresenter ContentTemplate="{StaticResource ClockTemplate}" Height="64" Width="64" Canvas.Left="81" Canvas.Top="99" />
					<Path Height="21.5" Width="22.5" Canvas.Left="32" Canvas.Top="13" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" Data="M32.5,14.5 L32.5,33 L54,34" StrokeThickness="2"/>
					<Path Height="18.5" Width="32" Canvas.Left="92.5" Canvas.Top="27" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data="M124.5,45.5 L114,29.5 L94.5,29"/>
					<Path Height="37" Width="17" Canvas.Left="182" Canvas.Top="17" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data="M184,19 L199,33 L199,54"/>
					<Path Height="11" Width="42" Canvas.Left="12.5" Canvas.Top="127" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data="M14.5,138 L33,129 L54.5,129"/>
					<Path Height="23.5" Width="18.5" Canvas.Left="114" Canvas.Top="110" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data="M116,112 L116.5,133.5 L132.5,126"/>
					<Path Height="16.5" Width="26" Canvas.Left="193.5" Canvas.Top="130" Fill="{x:Null}" Stretch="Fill" Stroke="{StaticResource ForegroundLight1ColourBrush}" StrokeThickness="2" Data="M208,146.5 L195.5,132 L219.5,133"/>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" Canvas.Left="20.258" Canvas.Top="68" FontFamily="Comic Sans MS" TextWrapping="NoWrap" FontSize="14"><Run Text="3:"/><Run Text="00"/></TextBlock>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Comic Sans MS" TextWrapping="NoWrap" Canvas.Left="96.924" Canvas.Top="68" FontSize="14"><Run Text="5"/><Run Text=":"/><Run Text="15"/></TextBlock>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Comic Sans MS" TextWrapping="NoWrap" Canvas.Left="180.666" Canvas.Top="68" FontSize="14"><Run Text="10"/><Run Text=":"/><Run Text="3"/><Run Text="0"/></TextBlock>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Comic Sans MS" Text="8:15" TextWrapping="NoWrap" Canvas.Left="19.832" Canvas.Top="167" FontSize="14"/>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Comic Sans MS" TextWrapping="NoWrap" Canvas.Left="100.108" Canvas.Top="167" FontSize="14"><Run Text="2"/><Run Text=":00"/></TextBlock>
					<TextBlock Foreground="{StaticResource BkgDarkContrastColourBrush}" Height="Auto" Width="Auto" FontFamily="Comic Sans MS" Text="5:15" TextWrapping="NoWrap" Canvas.Left="183.941" Canvas.Top="166.333" FontSize="14"/>
					<Path Height="17.5" Width="18.5" Canvas.Left="141.001" Canvas.Top="58.333" Fill="{x:Null}" Stretch="Fill" Stroke="#FFFF3939" StrokeThickness="3" Data="M140,60 C145.49472,67.492805 148.53452,70.741402 156.5,75.5"/>
					<Path Height="20" Width="16.5" Canvas.Left="140" Canvas.Top="58.5" Fill="{x:Null}" Stretch="Fill" Stroke="#FFFF3939" StrokeThickness="3" Data="M141,76.5 C145.5004,69.999435 151.07587,66.348282 154.5,59.5"/>
				</Canvas>
				<Rectangle Height="20.667" HorizontalAlignment="Left" Margin="189.333,79,0,0" VerticalAlignment="Top" Width="53.667" Fill="#00FFFFFF" Stroke="{x:Null}" StrokeThickness="0" d:LayoutOverrides="Height" Cursor="Hand"
                           >
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonUp">
							<n:NavigateAction Url="Pages/FuturePage/TimeInfomation"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</Rectangle>
				<Rectangle Height="20.667" HorizontalAlignment="Left" Margin="194.667,150.667,0,0" VerticalAlignment="Top" Width="85.333" Fill="#00FFFFFF" Stroke="{x:Null}" StrokeThickness="0" d:LayoutOverrides="Height" Cursor="Hand"
                           >
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonUp">
							<n:NavigateAction Url="Pages/FuturePage/AdditionInfomation"/>
						</i:EventTrigger>
					</i:Interaction.Triggers>
				</Rectangle>
                    
			</Grid>

		</Grid>
	</ScrollViewer>
</UserControl>
